package com.handpay.nocardpay.baselibrary.qualificationinfo.model.bean;


import android.os.Parcel;
import android.os.Parcelable;

import com.handpay.nocardpay.baselibrary.commbase.model.bean.BaseResponseBean;
import java.util.List;

public class BankList extends BaseResponseBean implements Parcelable {
    /**
     * items : 52
     * list : [{"areaFlag":"0","bankCode":"14473600","bankName":"安徽省农村信用社联合社","provinceFlag":"0","subBankFlag":"1"},{"areaFlag":"0","bankCode":"14436100","bankName":"广西农村信用社（合作银行）","provinceFlag":"0","subBankFlag":"1"}]
     */

    private int items;
    private List<ListBean> list;

    public int getItems() {
        return items;
    }

    public void setItems(int items) {
        this.items = items;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements android.os.Parcelable {
        /**
         * areaFlag : 0
         * bankCode : 14473600
         * bankName : 安徽省农村信用社联合社
         * provinceFlag : 0
         * subBankFlag : 1
         */

        private String areaFlag;
        private String bankCode;
        private String bankName;
        private String provinceFlag;
        private String subBankFlag;

        public String getAreaFlag() {
            return areaFlag;
        }

        public void setAreaFlag(String areaFlag) {
            this.areaFlag = areaFlag;
        }

        public String getBankCode() {
            return bankCode;
        }

        public void setBankCode(String bankCode) {
            this.bankCode = bankCode;
        }

        public String getBankName() {
            return bankName;
        }

        public void setBankName(String bankName) {
            this.bankName = bankName;
        }

        public String getProvinceFlag() {
            return provinceFlag;
        }

        public void setProvinceFlag(String provinceFlag) {
            this.provinceFlag = provinceFlag;
        }

        public String getSubBankFlag() {
            return subBankFlag;
        }

        public void setSubBankFlag(String subBankFlag) {
            this.subBankFlag = subBankFlag;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.areaFlag);
            dest.writeString(this.bankCode);
            dest.writeString(this.bankName);
            dest.writeString(this.provinceFlag);
            dest.writeString(this.subBankFlag);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.areaFlag = in.readString();
            this.bankCode = in.readString();
            this.bankName = in.readString();
            this.provinceFlag = in.readString();
            this.subBankFlag = in.readString();
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };

        @Override
        public String toString() {
            return "ListBean{" + "areaFlag='" + areaFlag + '\'' + ", bankCode='" + bankCode + '\'' + ", bankName='" + bankName + '\'' + ", provinceFlag='" + provinceFlag + '\'' + ", subBankFlag='" + subBankFlag + '\'' + '}';
        }
    }

    public BankList() {
    }

    @Override
    public String toString() {
        return "BankList{" + "items=" + items + ", list=" + list + '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.items);
        dest.writeTypedList(this.list);
    }

    protected BankList(Parcel in) {
        this.items = in.readInt();
        this.list = in.createTypedArrayList(ListBean.CREATOR);
    }

    public static final Parcelable.Creator<BankList> CREATOR = new Parcelable.Creator<BankList>() {
        @Override
        public BankList createFromParcel(Parcel source) {
            return new BankList(source);
        }

        @Override
        public BankList[] newArray(int size) {
            return new BankList[size];
        }
    };
}
